package STUDENT.TRANDAODAIVI.ARRAY;
class tinh{
	
	public static void matrix(int[] array1, int[] array2, int[] array3, int[] array4){
		int[] array=null;
		if (array1.length==array2.length&
				array2.length==array3.length&
					array3.length==array4.length){
			array=new int[array1.length];
			for (int i=0;i<array1.length;i++){
				array[i]=array1[i]+array3[i]+array3[i]+array4[i];
			}
		}
		for (int i=0;i<array.length;i++){
			System.out.print(array[i]+" ");
		}
		
	}
}
public class BT8 {
	public static void main(String[] args) {
		int[] array1={1,2,4,5};
		int[] array2={6,7,8,9};
		int[] array3={10,11,12,13};
		int[] array4={14,15,16,17};
		tinh.matrix(array1, array2, array3, array4);
	}
}
